package com.jack.design_patterns.structural.bridge;

/**
 * 抽象的销售渠道
 *  PhoneOnSale ===>howToSale
 *  PhoneOffSale ===>howToSale、
 *  PhoneStudentSale ===>howToSale
 *  PhonePddSale ===>howToSale
 */
public abstract class AbstractSale {

    /**
     * 渠道的类型
     */
    private String type;

    /**
     * 该渠道下的价格
     */
    private double price;

    public AbstractSale(String type, double price) {
        this.type = type;
        this.price = price;
    }

    public String getSaleInfo() {
        return "渠道: " + type + ", 价格: " + price;
    }

    void howToSale() {
        // 每个渠道都不一样
    }
}
